package my.guojian.jdbc.util;

import my.guojian.jdbc.bean.ConnectionBean;
import my.guojian.jdbc.connection.ConnectionPool;

public class DbConUtil {

	public static ConnectionBean getConnectionBean(String dbname) {
		dbname = dbname.trim();
		return ConnectionPool.getFreeConnection(IPConfigUtil.getProperty(dbname + ".url"), IPConfigUtil.getProperty(dbname + ".username"),
				IPConfigUtil.getProperty(dbname + ".password"));
	}

	public static void main(String[] args) {
		//System.out.println(DbConUtil.getConnectionBean("ywbase"));
		
		String a = "aaa";
		System.out.println(a.hashCode());
		
	}

	
}
